from django.db import models


# Create your models here.
class Admin(models.Model):
    username = models.CharField(max_length=20)
    password = models.CharField(max_length=20)
    type=models.CharField(default='super admin',max_length=20)

    def __str__(self):
        return self.username

    class Meta:
        verbose_name = '超级管理员'
        db_table = 'super_admin'


class User(models.Model):
    username = models.CharField(max_length=20)
    password = models.CharField(max_length=20)
    type = models.CharField(default='admin', max_length=20)

    def __str__(self):
        return self.username

    class Meta:
        verbose_name = '管理员'
        db_table = 'pt_admin'
